<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="../layui/css/layui.css" />
		<script src="../jQuery/jquery-1.11.2.js"></script>
		<script src="../layui/layui.js"></script>
		<style type="text/css">
			* {
				font: 20px "宋体" ;
				color: black;
				
			}
			#yi{
				position:absolute;
				z-index:1;
				top:200px;
				left: 900px;
				width:500px;
				height:400px;
				background-color: rgba(255,255,255,0.8);
				border-radius:2% ;
			}
		</style>
		<style>::-webkit-scrollbar{display: none;}</style>
	</head>
	<body background="../image/login2.jpg">
		<div class="" id="yi" >
			<h3  style="padding-top:20px;padding-left:30px;font: bold 40px '微软雅黑';">欢迎登录</h3>
			<form class="layui-form" style="padding-top: 80px;padding-left: 60px;">
				<div class="layui-form-item"><label class="layui-form-label" style="font-size: 18px;font-family: 宋体">账号：</label><input style="width: 240px;font-size: 18px;font-family: 宋体" name="userName" class="layui-input layui-input-inline" type="text"   placeholder='账号' /></div>
				<div class="layui-form-item" style="margin-top: 30px;"><label class="layui-form-label" style="font-size: 18px;font-family: 宋体">密码：</label><input style="width: 240px;font-size: 18px;font-family: 宋体" name="userPaw" class="layui-input layui-input-inline" type="password"   placeholder='密码' /></div>
				<div style="margin-top: 50px;">
					<a class="layui-btn layui-btn-radius" id="buts" lay-submit lay-filter="bd" style="line-height:40px;font-size:18px;text-align:center;margin-left: 60px; background: #2E58FF;color: white; width: 300px;height: 40px;">登录</a>
				</div>
			</form>
		</div>
	</body>
	<script>
		layui.use(["form","layer"],function () {
			var fr=layui.form;
			var layer=layui.layer;
			fr.on("submit(bd)",function (msg) {
				$.ajax({
					type:"POST",
					url:"/uc/signin",
					data:JSON.stringify(msg.field),
					contentType:"application/json;charset=utf-8",
					dataType:"text",
					success:function (xx) {
						if(xx=="main"){
							location.href="index.html";
						}else{
							layer.msg("密码或账号错误");
						}
					}
				});
			});
		});
	</script>
</html>
